import {request} from "@/service/request";
import Page = Api.Common.Page;
import Pageable = Api.Common.Pageable;


export function fetchAddUser(params: Api.Entity.User) {
  return request<Api.Entity.Order>({
    url: '/user/save',
    method: 'post',
    data: params
  });
}

// 用户管理
export function fetchGetUserList(params?: Pageable) {
  return request<Page<Api.Entity.User>>({
    url: '/user/getUserList',
    method: 'post',
    data: params
  });
}

export function fetchGetUserInfoByParams(params?: any) {
  return request<Api.Entity.User>({
    url: '/user/getUserInfo',
    method: 'post',
    data: params
  });

}
